package com.wxd.framework.entity;

import java.util.List;

import com.wxd.framework.common.data.DataBaseHelper;

public class Role extends BaseEntity{
    private String id;

    private String roleName;

    private String roleDesc;

    private Boolean isStoped;
    
    private List<UserRole> userRoles;
    
    public Role(){    	
    }
    
    public Role(String roleName, String roleDesc, String creater){
    	super(creater, creater);
    	this.id = DataBaseHelper.getRandomUUID();
    	this.roleName = roleName;
    	this.roleDesc = roleDesc;
    	this.isStoped = false;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName == null ? null : roleName.trim();
    }

    public String getRoleDesc() {
        return roleDesc;
    }

    public void setRoleDesc(String roleDesc) {
        this.roleDesc = roleDesc == null ? null : roleDesc.trim();
    }

    public Boolean getIsStoped() {
        return isStoped;
    }

    public void setIsStoped(Boolean isStoped) {
        this.isStoped = isStoped;
    }

	public List<UserRole> getUserRoles() {
		return userRoles;
	}

	public void setUserRoles(List<UserRole> userRoles) {
		this.userRoles = userRoles;
	}

    
}